package com.ruoyi.labdanger.mapper;

import java.util.List;
import com.ruoyi.labdanger.domain.LabApplyPurchase;

/**
 * 申请采购Mapper接口
 * 
 * @author winner pan
 * @date 2022-03-09
 */
public interface LabApplyPurchaseMapper 
{
    /**
     * 查询申请采购
     * 
     * @param instanceId 申请采购ID
     * @return 申请采购
     */
    public LabApplyPurchase selectLabApplyPurchaseById(Long instanceId);

    /**
     * 查询申请采购列表
     * 
     * @param labApplyPurchase 申请采购
     * @return 申请采购集合
     */
    public List<LabApplyPurchase> selectLabApplyPurchaseList(LabApplyPurchase labApplyPurchase);

    /**
     * 新增申请采购
     * 
     * @param labApplyPurchase 申请采购
     * @return 结果
     */
    public int insertLabApplyPurchase(LabApplyPurchase labApplyPurchase);

    /**
     * 修改申请采购
     * 
     * @param labApplyPurchase 申请采购
     * @return 结果
     */
    public int updateLabApplyPurchase(LabApplyPurchase labApplyPurchase);

    /**
     * 删除申请采购
     * 
     * @param instanceId 申请采购ID
     * @return 结果
     */
    public int deleteLabApplyPurchaseById(Long instanceId);

    /**
     * 批量删除申请采购
     * 
     * @param instanceIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteLabApplyPurchaseByIds(Long[] instanceIds);
    
    public int updateAcademyPurchase(LabApplyPurchase labApplyPurchase);
    
    public List<LabApplyPurchase> selectForAcademyPurchase(Long purchaseId);
}
